<extend name="Public/base" />

<block name="body">
	<div class="main-title cf">
		<h2>修改会员</h2>
	</div>

	<!-- 标签页导航 -->
	<div class="tab-wrap">
		<div class="tab-content">
			<!-- 表单 -->
			<form id="form" action="" method="post" class="form-horizontal doc-modal-form">
				<ul class="tab-nav nav">
					<li class="current">
						<a href="javascript:void(0)" class="qh" dat="tab1">个人基本信息</a>
					</li>
					<li><a href="javascript:void(0)" class="qh" dat="tab2">身份证银行卡信息</a></li>
					<li><a href="javascript:void(0)" class="qh" dat="tab3">个人关系信息</a></li>
					<li><a href="javascript:void(0)" class="qh" dat="tab4">缴费认证</a></li>
				</ul>
				<!-- 基础 -->
				<div id="tab1" class="tab-pane in tab1">
					<div class="form-item cf">
						<label class="item-label">用户名</label>
						<div class="controls">
							{$data['user']}
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">密码<span class="check-tips">（请输入修改密码）</span></label>
						<div class="controls">
							{$data['pass']}
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">当前额度<span class="check-tips">（请授权借贷产品）</span></label>
						<div class="controls">
							{$shop['name']} | {$shop['money']}
						</div>
					</div>

					<div class="form-item cf">
						<label class="item-label">当前状态<span class="check-tips">（修改用户状态）</span></label>
						<div class="controls">
							<?php if($data['start']==1){echo '正常';}?>
							<?php if($data['start']==2){echo '认证完成';}?>
							<?php if($data['start']==3){echo '拉黑';}?>
							<?php if($data['start']==4){echo '审核完成';}?>
						</div>
					</div>

					<div class="form-item cf">
						<label class="item-label">真实手机号码</label>
						<div class="controls">
							{$data['phone']}
						</div>
					</div>

					<div class="form-item cf">
						<label class="item-label">真实姓名</label>
						<div class="controls">
							{$data['name']}
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">注册时间</label>
						<div class="controls">
							{$data['time']}
						</div>
					</div>

					<div class="form-item cf">
						<label class="item-label">借贷信息</label>
						<div class="controls">
							<a target="_blank" href="{:U('tbd/order',array('key'=>$data['phone']))}">查看所有借贷信息</a>
						</div>
					</div>
				</div>
				<div id="tab2" class="tab-pane in tab1" style="display: none">
					<div class="form-item cf">
						<label class="item-label">身份证正面</label>
						<div class="controls">
							<img style="width: 300px;height: 200px" src="{$data['sfz_z']}" alt="">
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">身份证反面</label>
						<div class="controls">
							<img style="width: 300px;height: 200px" src="{$data['sfz_f']}" alt="">
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">银行卡归属</label>
						<div class="controls">
							{$data['yhkgs']}
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">银行卡号</label>
						<div class="controls">
							{$data['yhkh']}
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">银行预留手机号码</label>
						<div class="controls">
							{$data['yhkphone']}
						</div>
					</div>
				</div>
				<div id="tab3" class="tab-pane in tab1" style="display: none">

					<div class="form-item cf">
						<label class="item-label">工作单位<span class="check-tips">（工作单位）</span></label>
						<div class="controls">
							{$arr_rz['gzdw']}
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">工作职位<span class="check-tips">（工作职位）</span></label>
						<div class="controls">
							{$arr_rz['gzzw']}
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">工作地址<span class="check-tips">（工作地址）</span></label>
						<div class="controls">
							{$arr_rz['gzdz']}
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">月薪<span class="check-tips">（月薪）</span></label>
						<div class="controls">
							{$arr_rz['yx']}
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">婚姻状态<span class="check-tips">（婚姻状态）</span></label>
						<div class="controls">
							{$arr_rz['hyzt']}
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">配偶联系电话<span class="check-tips">（配偶联系电话）</span></label>
						<div class="controls">
							{$arr_rz['yhpo']} &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; {$arr_rz['yhpon']}
						</div>
					</div>


					<div class="form-item cf">
						<label class="item-label">紧急联系人(父母兄弟)<span class="check-tips">（紧急联系人(父母兄弟)）</span></label>
						<div class="controls">
							{$arr_rz['lxr1']}&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;{$arr_rz['lxr1n']}
						</div>
					</div>


					<div class="form-item cf">
						<label class="item-label">同事<span class="check-tips">（同事）</span></label>
						<div class="controls">
							{$arr_rz['lxr2']}&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; {$arr_rz['lxr2n']}
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">朋友<span class="check-tips">（朋友）</span></label>
						<div class="controls">
							{$arr_rz['lxr3']}&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; {$arr_rz['lxr3n']}
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">亲戚<span class="check-tips">（亲戚）</span></label>
						<div class="controls">
							{$arr_rz['lxr4']}&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; {$arr_rz['lxr4n']}
						</div>
					</div>

				</div>
				<div id="tab4" class="tab-pane in tab1" style="display: none">

					<div class="form-item cf">
						<label class="item-label">支付凭证</label>
						<div class="controls">
							<a href="{$arr_pz['pz']}" target="_blank"><img style="width: 300px;height: 200px" src="{$arr_pz['pz']}" alt=""></a>
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">凭证上传时间</label>
						<div class="controls">
							{$arr_pz['time']}
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">朋友圈分享时间</label>
						<div class="controls">
							{$fx['time']}
						</div>
					</div>



				</div>

				<!-- 按钮 -->
				<div class="form-item cf">
					<label class="item-label"></label>
					<div class="controls edit_sort_btn">
						<input type="hidden" name="id" value="{$data['id']}"/>
						<!--<button class="btn submit-btn ajax-post no-refresh" type="submit" target-form="form-horizontal">确 定</button>-->
						<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
						<button class="btn btn-return" onclick="location.href='{:U('member_edit&id='.$data[id])}';return false;">去修改</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</block>
<block name="script">
<script type="text/javascript" src="__STATIC__/jquery.dragsort-0.5.1.min.js"></script>
<script type="text/javascript" charset="utf-8">
    //导航高亮
    $('.side-sub-menu').find('a[href="{:U('tbd/member')}"]').closest('li').addClass('current');

    $(function(){
    	showTab();

		$('.qh').click(function(){
			var dat=$(this).attr('dat');
			$('.tab-pane').hide();
			$('#'+dat).show();
		})
    })

</script>
</block>

